<template>
  <footer class="ie-footer">
    <div class="ie-container--fluid">
      <div class="ie-container">
        <div class="qrcode ie-pullright">
          <img src="/static/image/wechat.jpg" alt="" width="100" height="100">
        </div>
        <div class="meta">
          <div class="table">
            <div class="cell">
              <img src="/static/image/logo.png" alt="">
              <span>北京语洲科技有限公司</span>
            </div>
            <div class="cell">
              <span class="th">公司地址 / Address</span>
              <span class="td">北京市 海淀区 北土城西路103号</span>
            </div>
            <div class="cell">
              <span class="th">商务合作 / Phone</span>
              <span class="td">+86 185 1100 8134</span>
            </div>
          </div>
          <div class="copyright">
            <span>&copy;2021 Youcho Tech inc.</span>&nbsp;&nbsp;<span>蜀ICP备2021000958号</span>
          </div>
        </div>
      </div>
    </div>
  </footer>
</template>

<style lang="less">
.ie-footer {
  padding-top: 48px;
  padding-bottom: 48px;
  background-color: #FFF;
  position: relative;

  .meta {
    display: inline-block;
    max-width: calc(100% - 100px);

    img {
      height: 24px;
      margin-bottom: 6px;
      display: block;

      & + span {
        font-size: 12px;
        line-height: 16px;
        display: inline-block;
        font-weight: bold;
        color: #505050;
        letter-spacing: 1px;
      }
    }

    .table {
      margin-bottom: 32px;

      .cell {
        display: inline-block;
        position: relative;
        margin-right: 40px;
        vertical-align: top;
      }
    }

    .th {
      font-size: 12px;
      line-height: 16px;
      color: #272E3B;
      margin: 0 0 .5em 40px;
      display: block;

      &:before {
        content: '';
        width: 2px;
        height: 40px;
        background-color: #EEE;
        position: absolute;
        left: 0;
        top: 3px;
      }
    }

    .td {
      font-size: 20px;
      line-height: 24px;
      color: #272E3B;
      margin-left: 40px;
    }
  }

  .copyright {
    font-size: 14px;
    color: #B8B8B8;
    line-height: 22px;
  }
}

.mini {

  .ie-footer {

    .qrcode {
      margin-bottom: 24px;
      float: initial !important;
    }

    .meta {
      max-width: 100%;

      .cell {
        margin-bottom: 10px;
      }

      .th {
        margin-left: 0;

        &:before {
          content: none;
        }
      }

      .td {
        margin-left: 0;
      }
    }
  }
}
</style>
